package com.ton.common.controller.order.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 订单创建接受对象ton_pay_order
 */
@Data
public class PayOrderAddReq {
    @ApiModelProperty(name = "AppID", value = "AppID", required = true)
    @NotNull(message = "APPID不能为空")
    private String appId; //appID

    @ApiModelProperty(name = "商家订单号", value = "merchantOrderId", required = true)
    @NotNull(message = "商家订单号不能为空")
    private String merchantOrderId; // 商家订单号

    @ApiModelProperty(name = "APP名称", value = "APP名称", required = true)
    @NotNull(message = "App名称不能为空")
    private String appName; //app名称

    @ApiModelProperty(name = "订单金额", value = "订单金额", required = true)
    @NotNull(message = "订单金额不能为空")
    private float amount; //金额

    @ApiModelProperty(name = "订单回调URL", value = "订单回调URL", required = true)
    @NotNull(message = "订单回调地址不能为空")
    private String callbackUrl; //回调URL

    @ApiModelProperty(name = "货币类型 0=TRX 1=TRC20", value = "货币类型 0=TRX 1=TRC20(USDT)", required = true)
    @NotNull(message = "货币类型不能为空")
    private Integer coinType; //货币类型

    @ApiModelProperty(name = "用户ID", value = "用户ID", required = true)
    @NotNull(message = "用户ID不能为空")
    private Long userId; //用户id

    @ApiModelProperty(name = "备注信息", value = "备注信息")
    private String remark; //备注信息

    @ApiModelProperty(name = "测试地址", value = "测试地址")
    private String addressTest; //备注信息
}
